﻿<Window x:Class="HoaDon.Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Hóa Đơn" Height="350" Width="525" Loaded="Window_Loaded" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Label  Content="Số hóa đơn" HorizontalAlignment="Left"  Margin="5,5,5,5"></Label>
        <Label  Content="Tên hàng" Grid.Row="1" HorizontalAlignment="Left"  Margin="5,5,5,5"></Label>
        <Label  Content="Số lượng" Grid.Row="2" HorizontalAlignment="Left"  Margin="5,5,5,5"></Label>
        <Label  Content="Đơn giá" Grid.Row="3" HorizontalAlignment="Left"  Margin="5,5,5,5"></Label>
        <Label  Content="Diễn giải" Grid.Row="4" HorizontalAlignment="Left"  Margin="5,5,5,5"></Label>
        <TextBox Name="txtsohoadon" Grid.Column="1"  Height="30"  Margin="5,5,10,0"></TextBox>
        <ComboBox Name="cboTenhang" Grid.Row="1" Grid.Column="1" Height="30" Margin="5,5,10,0"></ComboBox>
        <TextBox Name="txtsoluong" Grid.Column="1" Grid.Row="2" Height="30"  Margin="5,5,10,0"></TextBox>
        <TextBox Name="txtdongia" Grid.Column="1" Grid.Row="3" Height="30"  Margin="5,5,10,0"></TextBox>
        <TextBox Name="txtdiengiai" Grid.Column="1" Grid.Row="4"  Margin="5,10,10,5"></TextBox>
        <Button Content="Lưu" Click="Button_Luu" Grid.Column="1" Grid.Row="5" Width="60" Height="30" HorizontalAlignment="right"  Margin="0,0,100, 0" ></Button>
        <Button Content="Thoát" Click="Button_Thoat"   Grid.Column="1" Grid.Row="5" Width="60" Height="30" HorizontalAlignment="Right"  Margin="0,0,30, 0"></Button>
    </Grid>


</Window>